package com.jiashihui.schema_lgorithm.spring.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author jiashihui
 * @date 2019/03/22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Component(value = "student")
public class Student {
    @Value("张三")
    private String name;
    @Value("23")
    private int age;
}
